<%@page import="com.sport.po.Manager"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>资料管理</title>
</head>
<body>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
	<jsp:include page="/center/header.jsp" flush="true"></jsp:include>

	<jsp:include page="/center/left.jsp" flush="true"></jsp:include>
	  <!--right-->
   <div class="centers_mr">
    <%Manager manager = (Manager)request.getSession().getAttribute("manager"); %>
    <h1 class="welcom_tm">欢迎您，尊敬的用户     <font><%=manager.getRealname() %> </font>！当前时间为 <label id="show">显示时间的位置</label></h1>
    <script type="text/javascript">
  
    
//获得当前时间,刻度为一千分一秒
var initializationTime=(new Date()).getTime();
function showLeftTime()
{
var now=new Date();
var year=now.getYear()+1900;
var month=now.getMonth();
var day=now.getDate();
var hours=now.getHours();
var minutes=now.getMinutes();
var seconds=now.getSeconds();
document.getElementById("show").innerHTML=""+year+"年"+month+"月"+day+"日 "+hours+":"+minutes+":"+seconds+"";
//一秒刷新一次显示时间
var timeID=setTimeout(showLeftTime,1000);
}
showLeftTime();
</script>
    <!--一条开始-->
    <div class="public_m1">
        <div class="public_m2">资料管理</div>
        <!--照片和内容-->    
        <div class="zp_nrm">
            <!--left-->
            
            <!--right-->
            <div >
				<div class="cantainer">
	<form action="<%=basePath%>UpdateManager.action"
		class="form-horizontal" role="form" method="post">
		<fieldset>
   			
		<div class="form-group">
			<label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
			<div class="col-sm-6">
				<input type="text" name="loginname" class="form-control"
					id="inputEmail3" value="<%=manager.getLoginname()%>"/>
			</div>
		</div>
		
		<div class="form-group">
			<label for="inputPassword3" class="col-sm-2 control-label">性别</label>
			<div class="col-sm-offset-0 col-sm-2">
				<div class="radio">
				<%String sex=manager.getSex(); %>
					<label><input type="radio" name="sex"<%=(sex==null || !sex.trim().equals("男") || !sex.trim().equals("女"))?"checked=\"checked\"":"" %> />男</label>
				</div>
			</div>
			<div class="col-sm-offset-0 col-sm-3">
				<div class="radio">
					<label><input type="radio" name="sex" value="女" <%=(sex==null || !sex.trim().equals("男") || !sex.trim().equals("女"))?"checked=\"checked\"":"" %>/>女</label>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label for="inputPassword3" class="col-sm-2 control-label">电话号码</label>
			<div class="col-sm-6">
				<input type="tel" name="phone" class="form-control"
					id="inputPassword3"  value="<%=manager.getPhone()%>"/>
			</div>
		</div>
		<div class="form-group">
			<label for="inputPassword3" class="col-sm-2 control-label">真实姓名</label>
			<div class="col-sm-6">
				<input type="text" name="realname" class="form-control"
					id="inputPassword3"  value="<%=manager.getRealname()%>"/>
			</div>
		</div>
		<div class="form-group">
			<label for="inputPassword3" class="col-sm-2 control-label">身份类型</label>
			<div class="col-sm-offset-0 col-sm-2">
			<%String type=manager.getType(); %>
				<div class="radio">
					<label><input type="radio" name="type" value="teacher" <%=(type==null || !type.trim().equals("teacher") || !type.trim().equals("manager"))?"checked=\"checked\"":"" %> />教练</label>
				</div>
			</div>
			<div class="col-sm-offset-0 col-sm-3">
				<div class="radio">
					<label><input type="radio" name="type" value="manager" <%=(type==null || !type.trim().equals("teacher") || !type.trim().equals("manager"))?"checked=\"checked\"":"" %>/>管理员</label>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label for="inputPassword3" class="col-sm-2 control-label">电子邮箱</label>
			<div class="col-sm-6">
				<input type="email" name="email" class="form-control"
					id="inputPassword3"   value="<%=manager.getEmail()%>" />
			</div>
		</div>
		
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-2">
				<button type="submit" class="btn btn-default">保存修改</button>
			</div>
			<div class="col-sm-offset-0 col-sm-2">
				<button type="reset" class="btn btn-default">重置</button>
			</div>
		</div>
		</fieldset>
	</form>
				
				</div>
              
                 
            </div>
        </div>
    </div>
                                          
    </div> 
</body>
</html>